package org.chw.netty;

import org.chw.netty.client.EchoClient;
import org.chw.netty.client.SocketClient;

/**
 * Hello world!
 */
public class NettyClientApp {
  public static void main(String[] args) throws InterruptedException {
    new NettyClientApp().starSocketClient();
  }

  private void starSocketClient() {
    new SocketClient("localhost", 8080).start();
  }

  private void startEchoClient() {
    try {
      new EchoClient("localhost", 8080).start();
    } catch (InterruptedException e) {
      e.printStackTrace();
    }
  }
}
